<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>image-hover-rotate</title>
    <style>
        .hover-rotate {
            overflow: hidden;
            margin: 8px;
            min-width: 240px;
            max-width: 320px;
            width: 100%;
            cursor: pointer;
        }
        .hover-rotate-img {
            transition: all .3s;
            box-sizing: border-box;
            max-width: 100%;
        }
        .hover-rotate:hover .hover-rotate-img{
            transform: scale(1.3) rotate(5deg);
        }
    </style>
</head>
<body>
    <figure class="hover-rotate">
        <img src="https://www.eveningwater.com/img/segmentfault/1.png" alt="图片加载中" class="hover-rotate-img">
    </figure>
</body>
</html>